﻿using Abcd.Order.Domain.Shared.PurchaseOrder;
using Newtonsoft.Json;
using Volo.Abp.DependencyInjection;
using Volo.Abp.EventBus.Distributed;

namespace Abcd.Warehouse.Domain.Commodities.OrderEventHandlers
{
    public class UserOrderedEventHandler : IDistributedEventHandler<PurchaseOrderSubmitedEto>,ITransientDependency
    {
        public async Task HandleEventAsync(PurchaseOrderSubmitedEto eventData)
        {
            await Task.CompletedTask;


            Console.WriteLine("用户购买订单已提交:"+JsonConvert.SerializeObject(eventData));
        }
    }
}
